<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$softtitle%]</title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<link href="templates/css/clickmenu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript">

	var resizewindow= null;

	window.onresize = function(){
		var h = $(window).height();
		if(resizewindow!=h){
			sizewindow();
			resizewindow=h;
		}
	}

	function sizewindow(){
		var h = $(window).height();
		if(document.getElementById("mainbodyauto")){
			$('.manageadd').css({height:h-40});
			$('.manageedit').css({height:h-40});
		}
	}
	var modelmanage_js_modelname_empty  = "[%$ST.modelmanage_js_modelname_empty%]";
	var modelmanage_js_pagemax_empty  = "[%$ST.modelmanage_js_pagemax_empty%]";
	var modelmanage_js_edit_ok = "[%$ST.modelmanage_js_edit_ok%]";
	var modelmanage_js_edit_no = "[%$ST.modelmanage_js_edit_no%]";
	var iframename = "[%$iframename%]";
	$(document).ready(function(){
		var h = '[%$iframeheightwindow%]';
		$('.manageedit').css({height:h-40});
		var options = {
			beforeSubmit: formverify,
			success:saveResponse
		}
		$('#modeledit').submit(function() {
			$(this).ajaxSubmit(options);
			return false;
		});
	})




	function formverify(formData) {
		var queryString = $.param(formData);
		var get=urlarray(queryString);
		if(get['modelname']==""){
			document.modeledit.modelname.focus();
			alert(modelmanage_js_modelname_empty);
			return false;
		}
		if(get['pagemax'].match(/^[1-9][0-9.]*$/ig)==null) {
			document.modeledit.pagemax.focus();
			alert(modelmanage_js_pagemax_empty);
			return false;
		}
		parent.windowsdig('Loading','iframe:index.php?archive=management&action=load','400px','180px','iframe',false);
	}
	function saveResponse(options){
		parent.closeifram();
		if (options=='true'){
			parent.frames[iframename].refresh('selectform','selectall','check_all');
			alert(modelmanage_js_edit_ok);
		}else{
			alert(modelmanage_js_edit_no);
		}
		parent.onaletdoc()
	}
</script>
</head>

<body>
<form name="modeledit" id="modeledit" method="post" action="index.php?archive=modelmanage&action=modelsave">
	<input type="hidden" name="inputclass" value="edit">
	<input type="hidden" name="id" value="[%$modelread.mid%]">
	<div id="mainbodyauto" class="manageedit">
		<div class="maindobycontent">
			<!--查看已选择的类型-->
			<div class="suggestion">
				<span class="sugicon"><span class="strong colorgorning2">[%$ST.position_title%]</span><span class="colorgorningage">[%$ST.modelmanage_edit_mess%]<u>[%$modelread.modelname%]</u></span></span>
			</div>
			<div class="sugtitle">
				<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.modelmanage_add_modenametype%]</span></span>
			</div>
			<div class="sugtitle-line"></div>
			<div class="formdiv">
				<table border="0" width="100%">
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_modelname%]</td>
						<td width="85%" class="trtitle02"><input type="text" name="modelname" size="25" maxlength="20" value="[%$modelread.modelname%]" class="infoInput"/> <span class="cautiontitle">[%$ST.modelmanage_add_modelname_mess%]</span></td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_pagemax%]</td>
						<td width="85%" class="trtitle02"><input type="text" name="pagemax" size="5" value="[%$modelread.pagemax%]" maxlength="2" class="infoInput"/> <span class="cautiontitle">[%$ST.modelmanage_add_pagemax_mess%]</span></td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_pagesylte%]</td>
						<td width="85%" class="trtitle02">
						<select size="1" name="pagesylte">
							<option [%if $modelread.pagesylte==1%] selected[%/if%] value="1">[%$ST.modelmanage_add_pagesylte1%]</option>
							<option [%if $modelread.pagesylte==2%] selected[%/if%] value="2">[%$ST.modelmanage_add_pagesylte2%]</option>
						</select>
						</td>
					</tr>
				</table>
			</div>
			<div class="sugtitle">
				<span class="sugtitleicon"><span class="strong colorgorning2">[%$ST.modelmanage_add_baseinfo%]</span></span>
			</div>
			<div class="sugtitle-line"></div>
			<div class="formdiv">
				<table border="0" width="100%">
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_ishtml%]</td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="ishtml"[%if $modelread.ishtml==1%] checked="checked"[%/if%]> [%$ST.modelmanage_add_isorder_1%]&nbsp;
							<input type="radio" value="0" name="ishtml"[%if $modelread.ishtml==0%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_0%]
							<span class="cautiontitle">[%$ST.modelmanage_add_ishtml_mess%]</span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_isorder%]</td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="isorder"[%if $modelread.isorder==1%] checked="checked"[%/if%]> [%$ST.modelmanage_add_isorder_1%]&nbsp;
							<input type="radio" value="0" name="isorder"[%if $modelread.isorder==0%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_0%]
							<span class="cautiontitle">[%$ST.modelmanage_add_isorder_mess%]</span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_istime%]</td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="istime"[%if $modelread.istime==1%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_1%]&nbsp;
							<input type="radio" value="0" name="istime"[%if $modelread.istime==0%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_0%]
							<span class="cautiontitle">[%$ST.modelmanage_add_istime_mess%]</span>
						</td>
					</tr>
                    <tr class="trstyle2">
						<td width="15%" class="trtitle01">展会信息录入</td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="isexhibit"[%if $modelread.isexhibit==1%] checked="checked"[%/if%]/> 启用&nbsp;
							<input type="radio" value="0" name="isexhibit"[%if $modelread.isexhibit==0%] checked="checked"[%/if%]/> 关闭
							<span class="cautiontitle">如启用展会模块，则该模型所匹配的内容可以添加相关展会信息</span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_islongtitle%]</td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="islongtitle"[%if $modelread.islongtitle==1%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_1%]&nbsp;
							<input type="radio" value="0" name="islongtitle"[%if $modelread.islongtitle==0%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_0%]
							<span class="cautiontitle">[%$ST.modelmanage_add_islongtitle_mess%]</span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_istsn%]</td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="istsn"[%if $modelread.istsn==1%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_1%]&nbsp;
							<input type="radio" value="0" name="istsn"[%if $modelread.istsn==0%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_0%]
							<span class="cautiontitle">[%$ST.modelmanage_add_istsn_mess%]</span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_isauthor%]</td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="isauthor"[%if $modelread.isauthor==1%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_1%]&nbsp;
							<input type="radio" value="0" name="isauthor"[%if $modelread.isauthor==0%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_0%]
							<span class="cautiontitle">[%$ST.modelmanage_add_isauthor_mess%]</span>
						</td>
					</tr>
					<tr class="trstyle2">
						<td width="15%" class="trtitle01">[%$ST.modelmanage_add_iscontent%]</td>
						<td width="85%" class="trtitle02">
							<input type="radio" value="1" name="iscontent"[%if $modelread.iscontent==1%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_1%]&nbsp;
							<input type="radio" value="0" name="iscontent"[%if $modelread.iscontent==0%] checked="checked"[%/if%]/> [%$ST.modelmanage_add_isorder_0%]
							<span class="cautiontitle">[%$ST.modelmanage_add_iscontent_mess%]</span>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
	<div id="downbotton">
		<div id="subbotton">
			<table border="0" width="100%">
				<tr>
					<td id="right"><input type="submit" name="Submit" value="[%$ST.botton_edit%]" class="buttonface" /></td>
					<td id="left" class="padding-left5"><input type="button" name="cancel" onClick="javascript:parent.onaletdoc();" value="[%$ST.botton_edit_reset%]" class="buttonface" /></td>
				</tr>
			</table>
		</div>
	</div>
</form>
</body>

</html>


